package com.pth.model;

public class Admin {

	public Admin() {
		super();
	}

	private int aid;
	
	private String adminnumber;
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((admindescrib == null) ? 0 : admindescrib.hashCode());
		result = prime * result
				+ ((adminnumber == null) ? 0 : adminnumber.hashCode());
		result = prime * result
				+ ((adminpassword == null) ? 0 : adminpassword.hashCode());
		result = prime * result + aid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Admin other = (Admin) obj;
		if (admindescrib == null) {
			if (other.admindescrib != null)
				return false;
		} else if (!admindescrib.equals(other.admindescrib))
			return false;
		if (adminnumber == null) {
			if (other.adminnumber != null)
				return false;
		} else if (!adminnumber.equals(other.adminnumber))
			return false;
		if (adminpassword == null) {
			if (other.adminpassword != null)
				return false;
		} else if (!adminpassword.equals(other.adminpassword))
			return false;
		if (aid != other.aid)
			return false;
		return true;
	}

	private String adminpassword;
	
	private String admindescrib;

	public int getAid() {
		return aid;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public String getAdminnumber() {
		return adminnumber;
	}

	public void setAdminnumber(String adminnumber) {
		this.adminnumber = adminnumber;
	}

	public String getAdminpassword() {
		return adminpassword;
	}

	public void setAdminpassword(String adminpassword) {
		this.adminpassword = adminpassword;
	}

	public String getAdmindescrib() {
		return admindescrib;
	}

	public void setAdmindescrib(String admindescrib) {
		this.admindescrib = admindescrib;
	}
	
	
}
